<%--
	author:
	time:2011-5-11 14:25:16
--%>
<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>添加</title>
	<%@include file="/commons/include/add.jsp" %>
	<script type="text/javascript" src="${ctx}/manage/sys/user/addUser_s.js"></script>
    <script type="text/javascript" src="${ctx}/js/calendar/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
$(function(){
	$(".form_title").css("width", "20%");
	jQuery("#dataForm").validate(
	{
		rules: {
		},
		messages: {
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
});
validCallBack = function()
{
	//添加页面自定义校验

	return true;
};

//刷新树节点
_callback=function()
{
	//parent.refresh();
	parent.refresh_add();
}

</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title"><span class="sptitle"><font color="blue">${user.name}>>用户信息添加</font></td>
		<td>
			<div class="menuTool">
				<a class="save" id="s_save" href="#">保存</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="addUser4.htm">
	<table border="0" cellspacing="1" cellpadding="0" class="listTable">
		<tr>
			<td class="form_title">登录帐号：</td>
			<td class="form_input">
				<input size="40" type="text" id="account" name="account" value="" style="border: 1px solid #999999;width: 50%;"/>
			</td>
		</tr>
		<tr>
			<td class="form_title">密&nbsp;&nbsp;码：</td>
			<td class="form_input">
				<input size="40" type="password" id="password" name="password" value="" style="border: 1px solid #999999;width: 50%;"/>
			</td>
		</tr>
		<tr>
			<td class="form_title"> 姓名：</td>
			<td class="form_input">
				<input size="40" type="text" id="name" name="name" value="" style="border: 1px solid #999999;width: 50%;"/>
			</td>
		</tr>
		<tr>
		  <td class="form_title">用户代码：</td>
		  <td class="form_input"><input type="text" name="userCode" id="userCode"></td>
	  </tr>
		<tr>
		  <td class="form_title">客户代码：</td>
		  <td class="form_input"><input type="text" name="customCode" id="customCode"></td>
	  </tr>
		<tr>
		  <td class="form_title">出生日期：</td>
		  <td class="form_input"><input type="text" name="dateOfBirth" id="dateOfBirth" readonly="readonly" class="Wdate" onFocus="WdatePicker({isShowWeek:true})"></td>
	  </tr>
		<tr>
		  <td class="form_title">性别：</td>
		  <td class="form_input"><input name="gender" type="radio" id="gender1" value="1" checked>
	      男
	        <input type="radio" name="gender" id="gender2" value="2">
	      女</td>
	  </tr>
		<tr>
		  <td class="form_title">用户性质：</td>
		  <td class="form_input"><select name="userNature" id="userNature">
		    <option value="1">公司员工</option>
            <option value="2">经销商或客户</option>
	      </select></td>
	  </tr>
		<tr>
		  <td class="form_title">公司：</td>
		  <td class="form_input"><select id="coCode" name="coCode">
				<option value="" >请选择</option>
				 <c:forEach items="${companiesList}" var="d" varStatus="status">
					<option value="${d.co_code}">${d.co_code}</option>
				</c:forEach>
		</select></td>
	  </tr>
		<tr>
		  <td class="form_title">部门：</td>
		  <td class="form_input"><select name="deptCode" id="deptCode">
		    <option value="" >请选择</option>
		    <c:forEach items="${departList}" var="d" varStatus="status">
		      <option value="${d.dep_code}">${d.dep_code}</option>
	        </c:forEach>
	      </select></td>
	  </tr>
		<tr>
		  <td class="form_title">职位：</td>
		  <td class="form_input"><input type="text" name="duty" id="duty"></td>
	  </tr>
		<tr>
		  <td class="form_title">手机号码：</td>
		  <td class="form_input"><input type="text" name="mobile" id="mobile"></td>
	  </tr>
		<tr>
		  <td class="form_title">办公电话：</td>
		  <td class="form_input"><input type="text" name="phone" id="phone"></td>
	  </tr>
		<tr>
		  <td class="form_title">传真：</td>
		  <td class="form_input"><input type="text" name="fax" id="fax"></td>
	  </tr>
		<tr>
		  <td class="form_title">EMAIL：</td>
		  <td class="form_input"><input type="text" name="email" id="email"></td>
	  </tr>
	</table>
<input type="hidden" id="pid" name="pid" value="${user.id}" />
<input type="hidden" id="userStatus" name="userStatus" value="3" />
	<input type="hidden" id="usertype" name="usertype" value="${user.usertype}" />
</form>
</body>
</html>
